package com.wn.ticket.web;

import com.wn.ticket.common.ResponseEntity;
import com.wn.ticket.entity.District;
import com.wn.ticket.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/front/District")
public class DistrictController {
    @Autowired
    private DistrictService districtService;
@RequestMapping("/select")
    public ResponseEntity selectByPid(Integer pid){
  List<Object> list=  districtService.getByType();
  return new ResponseEntity<>(list);

}
}
